package com.xqq.lottery.receiver;

import com.xqq.lottery.ConstantValue;
import com.xqq.lottery.net.NoticeService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.sax.StartElementListener;


/**
 * 网络发生变化
 * @author qqxia
 *
 */
public class NetChangeReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Intent servIntent =new Intent();
		servIntent.putExtra(ConstantValue.NOTICE_FLAG, ConstantValue.NOTICE_CHANGE_NET);
		servIntent.setClass(context, NoticeService.class);
		context.startService(servIntent);
	}

}
